package com.foreknow.demo0927;

/**
 * 员工类
 * JavaBean；就是一个普通的java类，只包含set，get方法和构造方法
 * 规范：1.类名与数据库表名对应  2.类中的属性名与表中的列名对应
 */

public class Employee {

    private String eno;
    private String pw;
    private String name;
    private double sal;
    private String dept;

    public Employee() {
    }

    //创建一个构造方法给上面的变量进行初始化
    public Employee(String eno, String pw, String name, double sal, String dept) {
        this.eno = eno;
        this.pw = pw;
        this.name = name;
        this.sal = sal;
        this.dept = dept;

    }

    public String getEno() {
        return eno;
    }

    public void setEno(String eno) {
        this.eno = eno;
    }

    public String getPw() {
        return pw;
    }

    public void setPw(String pw) {
        this.pw = pw;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSal() {
        return sal;
    }

    public void setSal(double sal) {
        this.sal = sal;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }
}
